<!DOCTYPE html>
<HTML>
<HEAD><meta name="viewport" content="width=device-width, initial-scale=1">
<Title>JsChartViewer.okButton</Title>
<link type='text/css' rel='Stylesheet' href="maxchartapi.css" />
</HEAD>
<body bgcolor="#FFFFFF" text="#000000" topmargin="0" leftmargin="0" rightmargin="0" marginwidth="0" marginheight="0">

<p class="heading0">ChartDirector 7.0 (Java Edition)</p>
<p class="heading1"><a href="JsChartViewer.htm">JsChartViewer</a>.<wbr>okButton</p>
<hr class="separator">
<p class="heading2a">Description</p>

<div class="content">
Gets or sets the "OK" button for closing the chart message window.<br><br>
This property is useful when customizing the <a href="JsChartViewer.serverErrorMsg.htm">JsChartViewer.serverErrorMsg</a>. It provides the code required to close the message window. It is also used as the close window button for partial update notification messages.<br><br>
You may customize the "OK" button by creating it in HTML, using "%closeScript" as the place holder for the Javascript that closes the window.<br><br>
As an example, the default "OK" button is:<br><br>
<div class="codeblock"><code class='pre'>&lt;center&gt;[&lt;a href="javascript:%closeScript"&gt; OK &lt;/a&gt;]&lt;/center&gt;</code></div><br>
<div class="greyblock">
<b>Note:</b> This is a static property (class property). It should be accessed as JsChartViewer.okButton, not <i>objName</i>.okButton.
</div>
</div>
<br><hr class="separator">
<div class="copyright">&copy; 2022 Advanced Software Engineering Limited. All rights reserved.</div>
</body>
</HTML>
